<%@ page language="java" pageEncoding="UTF-8" %>

<div>
<form action="${pageContext.request.contextPath}/RegisterServlet" method="post">
	<table>
		<tr>
			<td>邮箱</td>
			<td><input type="text" id="mail" name="mail" onkeyup="checkEmail();" /></td>
			<td><span id="mailMsg"></span>
				请输入有效的邮箱地址
			</td>
		</tr>
		<tr>
			<td>用户名</td>
			<td><input type="text" id="name" name="name" onkeyup="checkUsername();" /></td>
			<td><span id="nameMsg"></span>
				请勿以数字开头
			</td>
		</tr>
		<tr>
			<td>密码</td>
			<td><input type="password" id="password" name="password" onkeyup="checkPassword();" /></td>
			<td><span id="passwordMsg"></span>
				请输入6-16位密码
			</td>
		</tr>
		<tr>
			<td>密码确认</td>
			<td><input type="password" id="veripassword" name="veripassword" onkeyup="checkConfirm();" /></td>
			<td><span id="veriMsg"></span>
			</td>
		</tr>
		<tr>
			<td>性别</td>
			<td><input type="radio" name="sex" value="男" checked="checked" />男
				<input type="radio" name="sex" value="女" checked="checked" />女
			</td>
		</tr>
		<tr>
			<td>电话号码</td>
			<td><input type="number" id="phone" name="phone" onkeyup="checkPhone();" /></td>
			<td><span id="phoneMsg"></span>
				请输入11位电话号码
			</td>
		</tr>
		<tr>
			<td>自我介绍</td>
			<td><textarea cols="21" rows="5" id="description" name="description"></textarea></td>
		</tr>
		<tr>
			<td>验证码</td>
			<td><input type="text" id="vericode" name="vericode"></td>
			<td><img src="${pageContext.request.contextPath}/VerifyCode" onclick="this.src=this.src+'?'"></td>
		</tr>
		<tr>
			<td></td><td></td><td></td><td></td><td></td>
			<td><input type="submit" value="注册" /></td>
		</tr>
	</table>
</form>
</div>